package mapper;

import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import pojo.User;

import java.util.List;

public class UserMapperImpl2 extends SqlSessionDaoSupport implements UserMapper{

	//我们的所有操作，原来都使用sqlSession来执行，现在使用SqlSessionTemplate

	@Override
	public List<User> selectUser() {
		return getSqlSession().getMapper(UserMapper.class).selectUser();
	}
}
